﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyThuVien.DAO;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace QuanLyThuVien.BUS
{
    class TacGiaBUS
    {
        public static void Them(TacGia TG)
        {
            TacGiaDAO.Them(TG);
        }

        public static DataGridView GetMaTacGia(string TenTacGia)
        {
            return TacGiaDAO.GetMaTacGia(TenTacGia);
        }
        public static DataGridView GetTenTacGia(int MaTacGia)
        {
            return TacGiaDAO.GetTenTacGia(MaTacGia);
        }

        public static DataGridView GetAllTacGia()
        {
            return TacGiaDAO.GetAllTacGia();
        }

        public static void Sua(TacGia S)
        {
            TacGiaDAO.Sua(S);
        }

        // kiem tra tac gia co chua
        public static int KT_TacGia(string ten)
        {
            return TacGiaDAO.KT_TacGia(ten);
        }

        //xoa tac gia cu
        public static void Xoa_TacGia(int matg)
        {
            TacGiaDAO.Xoa_TacGia(matg);
        }


    }
}
